package chapter13;

public class Square extends GeometricObject{
    private double side;

    public Square(){
    }
    public Square(double side){
        this.side = side;
    }

    public double getSide() {
        return side;
    }
    public void setSide(double side) {
        this.side = side;
    }


    @Override
    public double getArea() {
        return side*side;
    }

    @Override
    public double getPerimeter() {
        return side*4;
    }
}
